public class MethodParameter01{

	public static void main(String[] args){

		AA a1 = new AA();
		int num1 = 23, num2 = 45;
		a1.swap(num1,num2);
		System.out.println("num1="+num1+"\tnum2="+num2);//23 45
	}
}

class AA{

	public void swap(int a, int b){
		int temp = a;
		a = b;
		b = temp;
		System.out.println("a="+a+"\tb="+b);//45 23
	}
}